package org.mspring.mlog.scheduler.job;

import org.mspring.mlog.ServiceFactory;
import org.mspring.mlog.service.PostService;
import org.quartz.JobExecutionContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 更新文章点击
 * 
 * @author Gao Youbo
 * @since 2013-1-8
 */
public class UpdateViewsJob extends BaseJob {

    private static final Logger log = LoggerFactory.getLogger(UpdateViewsJob.class);

    @Override
    public void nativeExecuteInternal(JobExecutionContext arg0) {
        PostService postService = ServiceFactory.getPostService();
        int result = postService.updateViews();
        log.info("本次共更新{}篇文章展示量", result);
    }

}
